package com.doit.day01;

import lombok.*;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class Order implements Comparable<Order>{
    private int user_id;
    private int order_id;
    private int goods_id;
    private String category_id;
    private Double price;
    private int goods_num;

    @Override
    public int compareTo(Order o) {
        return Double.compare(this.price,o.getPrice());
    }
}
